package com.probiz.estore.system.dao;

import java.math.BigDecimal;
import java.util.List;

import com.probiz.estore.common.model.system.PaymentHistory;
import com.probiz.estore.core.dao.GenericDao;
/**
 * PaymentHistory Data Access Object (DAO) interface.
 * Developer introduced interfaces should be declared here. Won't get overwritten.
 */
public interface PaymentHistoryDao extends GenericDao<PaymentHistory> {
    /**
     * 检查该记录是否已经存在于数据库,若存在，则表示该数据是来自支付网关的重复发送记录
     * @param flowNo
     * @param orderNo
     * @param paymentGatewayId
     * @param amount
     * @param flag
     * @return
     */
    public boolean getIsExistPaymentHistory(String flowNo,String orderNo,Integer paymentGatewayId,BigDecimal amount,Short flag);
    
}
